<!DOCTYPE html>
<html>
<head>
	<title>店铺申请协议</title>
	<include file='public/head'>
	<style>
		.layui-legend-size{font-size:14px !important;}
		.layui-nopadding{padding:0 !important;}
		.layui-overflow{overflow:auto;}
		.layui-nomargin{margin: 0 !important;}
		.layui-bottom{border-bottom:1px solid rgb(226, 226, 226);}
		.layui-input{height:30px !important; }
		.layui-form-search-item .layui-inline{margin-bottom: 5px;} 
		.layui-form-search-item label{margin-left: 15px;}
		.layui-table-page {padding: 7px 0px 0px;}
		.layui-field-padding{border-width: 1px;padding:0 0 5px 10px;}
	</style>
</head>
<body>

<!-- layui-tab开始 -->
<div class="layui-tab " lay-filter="demo-tab">
	<!-- 顶部导航菜单开始 -->
	<div class="layui-tab-nav" >
        <ul class="layui-tab-title">
			{:getNav('store','admin_index/storerule')};
		</ul>
	</div>

	<!-- 顶部导航菜单结束 -->
    <div class="layui-col-md12">
    	<div class="layui-col-md8 layui-col-md-offset2" >
    		<blockquote class="layui-elem-quote" style="margin-top:10px;">温馨提示: 此处配置店铺申请协议</blockquote>
    		<fieldset class="layui-elem-field layui-field-title layui-field-padding" style="padding:20px;margin:20px auto;" >
				<form class="layui-form" action="" method="post">
					<div class="layui-form-item">
							<script type="text/plain" id="edit" required style="height:500px;" name="edit" rows="12">{$text}</script>
					</div>	
 					<div class="layui-form-item">
                        <div class="layui-input-block" align="right">
                            <button class="layui-btn" lay-submit lay-filter="sitesave">保存设置</button>
                        </div>
                    </div>					
				</form>	
			</fieldset>
		</div>
	</div>	


</div>	




	<include file='public/scripts'>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>		
<script type="text/javascript">

var ue = UE.getEditor('edit' , { zIndex: 100});
var form = layui.form;
	        //监听提交
            form.on('submit(sitesave)', function(data){
                //询问框
                layer.confirm('店铺申请协议,请谨慎修改,确定要修改吗？', 
                    {
                        btn: ['确定','取消'], //按钮
                        title:"修改提示",
                        icon: 3
                    },
                    function(){
                        $.post( '{:cmf_plugin_url("Store://admin_index/storeRule")}' , {data : data.field } , function( res ){
                            layer.msg( res.message , { time: 800 } , function(){
                            	window.location.reload();
                            } );
                        } );
                    },
                    function(){
                        layer.msg('操作取消');
                        window.location.reload();
                    }
                );
                
                return false;
            });

</script>
</body>
</html>
</body>
</html>